package com.awesome.livedatademo.livedataviewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

/**
 * Author: zhangjingfang
 * Email:zhangjingfang@jeejio.com
 * Date: 2022/1/25
 * Description:类描述
 */
public class MainViewModel extends ViewModel {
    MutableLiveData<String> userLiveData = new MutableLiveData<String>();

    public void loadUser(){
        userLiveData.setValue("viewmodel");
    }

} 
 
 